package com.admin.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 宿舍表
 * </p>
 *
 * @author szy
 * @since 2023-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("room")
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 宿舍id
     */
    private Integer dormitoryId;

    /**
     * 门牌号
     */
    private Integer tablet;

    /**
     * 床位
     */
    private Integer bedNumber;

    /**
     * 是否空闲(默认1空闲，0非)
     */
    private Boolean isFree;

    /**
     * 入住用户名
     */
    private String checkUsername;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


}
